<template>
  <el-dialog title="预览图片" :visible="dialogVisible" @close="close">
    <el-image style="width: 100%; height: 100%" :src="imgUrl" />
  </el-dialog>
</template>

<script>
export default {
  props: {
    dialogVisible: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
      imgUrl: ''
    }
  },
  methods: {
    close() {
      this.$emit('update:dialog-visible', false)
    }
  }
}
</script>

<style></style>
